package com.nbsaas.boot.project.rest.convert;

import com.nbsaas.boot.project.data.entity.DataModelField;
import com.nbsaas.boot.project.api.domain.simple.DataModelFieldSimple;

import com.nbsaas.boot.rest.api.Converter;

/**
* 列表对象转换器
*/

public class DataModelFieldSimpleConvert implements Converter<DataModelFieldSimple, DataModelField> {




@Override
public DataModelFieldSimple convert(DataModelField source) {
    DataModelFieldSimple result = new DataModelFieldSimple();

                result.setName(source.getName());
                result.setId(source.getId());
                result.setProjectId(source.getProjectId());


    return result;
}

}